package com.bawei.mmvvpp.vv;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.bawei.mmvvpp.pp.KotlinPretenter;

/**
 * create by ertu
 * create on 2021/7/31
 * description
 */
public abstract class KotlinBaseAcyivity<P extends KotlinPretenter> extends AppCompatActivity implements KotlinAcyivity,KotlinView {

    protected  P perecka;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(kaotlinLayout());
        kaotinitView();
        kaotinitDate();
    }

    @Override
    public void showkotlin() {

    }

    @Override
    public void haidkotlin() {

    }

    @Override
    public void tostkotlin() {

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (perecka!=null)
        {
            perecka=null;
            perecka.kotlinpretenterds();
        }
    }
}
